package base.IO流;

import java.io.Serial;
import java.io.Serializable;

public class Girlfriend implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    private String name;
    private int age;
    private transient String address;

    public Girlfriend(String name, int age, String address) {
        this.name = name;
        this.age = age;
        this.address = address;
    }
    public Girlfriend(){}

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Girlfriend{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", address='" + address + '\'' +
                '}';
    }
}
